package com.chinadrtv.batch.admin.jobs.ozing.common;

import com.chinadrtv.user.model.Device;
import com.chinadrtv.user.model.User;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * User: Jack.Chen
 * Date: 12-12-20
 */
public class DeviceRowMapper implements RowMapper {
    @Override
    public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
        Device device = new Device();
        device.setId(rs.getLong("id"));
        return device;
    }
}
